<div class="title">{$pg_title}</div>
<br />
<table>
<tr>
{foreach from=$pg_header item=pg_hdr}
	<th>{$pg_hdr}</th>
{/foreach}
</tr>

{foreach from=$pg_data item=pg_row}
<tr class="{cycle values="dark,light"}">
	{foreach from=$pg_row item=pg_key}
	<td {if !empty($pg_key[1])}{$pg_key[1]}{/if}>{$pg_key[0]}</td>
	{/foreach}
</tr>
{foreachelse}
<tr  class="{cycle values="dark,light"}">
	<td colspan="{$pg_cspan+1}">
	<b>{$pg_emptymessage}</b>
	</td>
</tr>
{/foreach}
{if $pg_totals>0 }
<tr class="footer">
	<td colspan="{$pg_cspan}">
		Page:
		&nbsp;&nbsp;
		{if empty($pg_ppvlist_prev)}&lt;&lt;{else}<a href="{$pg_ppvlist_prev}">&lt;&lt;</a>{/if}
		{if empty($pg_pageslist_prev)}prev{else}<a href="{$pg_pageslist_prev}">prev</a>{/if}&nbsp;&nbsp;

{foreach from=$pg_pageslist item=pg_lnk_url key=pg_lnk_idx}
	{if empty($pg_lnk_url)}
		<b style="font-size: 12; color: #ff0000;">{$pg_lnk_idx}</b>
	{else}
		<a href="{$pg_lnk_url}">{$pg_lnk_idx}</a>
	{/if}
{/foreach}
		&nbsp;&nbsp;
		{if empty($pg_pageslist_next)}next{else}<a href="{$pg_pageslist_next}">next</a>{/if}
		&nbsp;&nbsp;
		{if empty($pg_ppvlist_next)}&gt;&gt;{else}<a href="{$pg_ppvlist_next}">&gt;&gt;</a>{/if}
		&nbsp;&nbsp;
		{if empty($pg_pageslist_all)}all{else}<a href="{$pg_pageslist_all}">all</a>{/if}
		&nbsp;&nbsp;
	</td>
	<td align="right">Total : {$pg_totals}</td>
</tr>
{/if}
</table>
